package com.deer.wms.base.system.web.zhBusiness.electricBox;

public class Test {
    public static void main(String[] args) {
        String str = "2009-12-33";//^\d{4}\-(0?[1-9]|1[012])\-(0?[1-9]|[12][0-9]|3[01])$
        if(str.matches("^\\d{4}\\-(0?[1-9]|1[012])\\-(0?[1-9]|[12][0-9]|3[01])$")) {
            System.out.println("1");
        } else{
        }
    }
}
